package com.ihr360.sharedservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@ComponentScan(value = "com.ihr360.sharedservice")
@ComponentScan(value = "com.ihr360.mail")
@ComponentScan(value = "com.ihr360.admin.client")
@EntityScan(basePackages = {"com.ihr360.sharedservice","com.ihr360.mail.dto"})
@EnableJpaRepositories(basePackages = {"com.ihr360.mail.dao","com.ihr360.sharedservice"})
@PropertySource(value = "classpath:git.properties", ignoreResourceNotFound = true)
public class SharedServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(SharedServiceApplication.class, args);
    }
}